<template>
    <div>
        <h2>Home</h2>
        name:{{ name }}
        <hr>
        age:{{ age }}
    </div>
</template>
<script>
export default {
    // this.name = 'jack' this.age=20
    props: ['name', 'age'],
    data() {
        return {}
    },
    created() {
        setTimeout(() => {
            this.$emit('change', 1)
            this.$emit('input', 'input hello')

        }, 5000);
    }
}
</script>
<style></style>